﻿<%@ Page Language="C#" MasterPageFile="MasterPage.master" 
	AutoEventWireup="true" Title="Untitled Page" CodeFile="./Controller/Admin_huidigeOpdrachten.aspx.cs" Inherits="Admin_huidigeOpdrachten" Theme="SkinFile"  %>



<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="LinqDataSource1" SkinID="gridviewSkin">
        <Columns>
            <asp:BoundField DataField="opgaveTekst" HeaderText="opgaveTekst" 
                ReadOnly="True" SortExpression="opgaveTekst" />
            <asp:BoundField DataField="oplossingTekst" HeaderText="oplossingTekst" 
                ReadOnly="True" SortExpression="oplossingTekst" />
        </Columns>
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DataClassesDataContext" 
        Select="new (opgaveTekst, oplossingTekst)" TableName="OpdrachtDetails" 
        Where="opdrachtID == @opdrachtID">
        <WhereParameters>
            <asp:QueryStringParameter DefaultValue="-1" Name="opdrachtID" 
                QueryStringField="id" Type="Int32" />
        </WhereParameters>
    </asp:LinqDataSource>

</asp:Content>